package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

import static org.jsola.hr.example.EmpSocBackRecordRecordExample.*;

/**
 * 社保回款记录
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【社保回款记录】的参数")
@Data
public class EmpSocBackRecordRecordAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_YEAR, example = E_YEAR)
    @Length(max = 32, message = M_YEAR_MAX)
    private String year;

    @ApiModelProperty(notes = N_MONTH, example = E_MONTH)
    @Length(max = 32, message = M_MONTH_MAX)
    private String month;

    @ApiModelProperty(notes = N_SERVICE_COST, example = E_SERVICE_COST)
    private BigDecimal serviceCost;

    @ApiModelProperty(notes = N_SOC_AMOUNT, example = E_SOC_AMOUNT)
    private BigDecimal socAmount;

    @ApiModelProperty(notes = N_OVERDUE_FINE, example = E_OVERDUE_FINE)
    private BigDecimal overdueFine;

    @ApiModelProperty(notes = N_TOTAL_AMOUNT, example = E_TOTAL_AMOUNT, required = true)
    @NotNull(message = M_TOTAL_AMOUNT_NOT_NULL)
    private BigDecimal totalAmount;

    @ApiModelProperty(notes = N_REALITY_AMOUNT, example = E_REALITY_AMOUNT, required = true)
    @NotNull(message = M_REALITY_AMOUNT_NOT_NULL)
    private BigDecimal realityAmount;

    @ApiModelProperty(notes = N_WAY_STATUS, example = E_WAY_STATUS)
    private Integer wayStatus;

    @ApiModelProperty(notes = N_AMOUNT, example = E_AMOUNT, required = true)
    private BigDecimal amount;

    @ApiModelProperty(notes = "回款人姓名")
    private String name;

}

